const tableColums = [{
  title: '表具ID',
  key: 'meterId',
  width: 100,
  fixed: 'left'
},
{
  title: '全天用气量',
  key: 'usageAll',
  width: 150
},
{
  title: '状态',
  key: 'usageAll',
  width: 120,
  render: (h, params = {}) => {
    const { row } = params
    let text = ''
    const {
      status
    } = row
    switch (Number(status)) {
      case 0:
        text = '正常'
        break
      case 1:
        text = '异常'
        break
      case -1:
        text = '未知'
        break
      default:
        text = status
    }
    return h('span', text)
  }
},
{
  title: '表具类型',
  key: 'meterType',
  width: 150
},
{
  title: '表具型号',
  key: 'modelNo',
  width: 150
}]

export default tableColums
